<!-- Begin one column window -->
<div class="onecolumn">
    <div class="header">
        <span style="font-weight: bold; text-align: center; color: red;">Danh sách người dùng</span>
    </div>
    <br class="clear"/>
    <div class="content">
        <!--<form id="abc" name="abc" action="" method="post">-->
        <table class="data" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th style="width:10px">
                        <input type="checkbox" id="check_all" name="check_all"/>
                    </th>
                    <th style="width:10%">Tên đăng nhập</th>
                    <th style="width:15%">Họ tên</th>
                    <th style="width:30%">Chức vụ</th>
                    <th style="width:15%">Email</th>
                    <th style="width:15%">Số điện thoại</th>
                    <th style="width:15%">Thao tác</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($paginator as $user) : ?>
                    <tr>
                        <td><input type="checkbox"></td>
                        <td><?php echo $this->escapeHtml($user->userName); ?></td>
                        <td>
                            <a href="<?php echo $this->url('list-user/default',array('action' => 'detailUser', 'id' => $user->userID))?>"><?php echo $this->escapeHtml($user->lastName) . " " . $this->escapeHtml($user->fullName); ?></a>
                        </td>
                        <td><?php echo $this->escapeHtml($user->description); ?></td>
                        <td><?php echo $this->escapeHtml($user->email); ?></td>
                        <td><?php echo $this->escapeHtml($user->phoneNumber); ?></td>
                        <td>
                            <a href="<?php echo $this->url('add-new-user/default',array('action' => 'editUser', 'id' => $user->userID))?>"><img src=<?php echo $this->basePath() . '/img/icon_edit.png' ?> alt="edit" class="help" title="Chỉnh sửa"/></a>
                            <a href="<?php echo $this->url('add-new-user/default',array('action' => 'deleteUser', 'id' => $user->userID))?>" style="margin-left: 30px;"><img src=<?php echo $this->basePath() . '/img/delete.png' ?> alt="delete" class="help" title="Xóa"/></a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <?php
        // add at the end of the file after the table
        echo $this->paginationControl(
                // the paginator object
                $this->paginator,
                // the scrolling style; see http://zf2.readthedocs.org/en/release-2.1.4/modules/zend.paginator.usage.html#rendering-pages-with-view-scripts
                'sliding',
                // the partial to use to render the control
                array('partial/paginator.phtml', 'Admin'),
                // the route to link to when a user clicks a control link
                array(
            'route' => 'list-user'
                )
        );
        ?>
        <!--</form>-->
    </div>
</div>
<!-- End one column window -->